<include file="Login:header" />
<div class="pad_lr_10" >
    <form name="searchform" method="get" >
        <table width="100%" cellspacing="0" class="search_form">
            <tbody>
            <tr>
                <td>
                    <div class="explain_col">
                        创建时间：
                        <input type="text" name="time_start" id="time_start" class="date" size="12" value="{$search.time_start}" readonly>
                        -
                        <input type="text" name="time_end" id="time_end" class="date" size="12" value="{$search.time_end}" readonly>
                        &nbsp;&nbsp;附件名 :
                        <input name="name" type="text" class="input-text" size="25" value="{$search.name}" />
                        <input type="submit" name="search" class="btn" value="搜索" />
                    </div>
                </td>
            </tr>
            </tbody>
        </table>
    </form>

    <div class="J_tablelist table_list" data-acturi="{:U('article/ajax_edit')}">
        <table width="100%" cellspacing="0">
            <thead>
            <tr>
                <th width=25><input type="checkbox" id="checkall_t" class="J_checkall"></th>
                <th><span data-tdtype="order_by" data-field="id">ID</span></th>
                <th align="left"><span data-tdtype="order_by" data-field="name">附件名</span></th>
                <th align="left"><span data-tdtype="order_by" data-field="order_id">客户名</span></th>
                <th align="left">客户电话</th>
                <th align="left"><span data-tdtype="order_by" data-field="cate_id">分类名</span></th>
                <th align="left"><span data-tdtype="order_by" data-field="type">类型</span></th>
                <th align="left"><span data-tdtype="order_by" data-field="size">大小</span></th>
                <th align="left"><span data-tdtype="order_by" data-field="create_user_id">上传者</span></th>
                <th align="left"><span data-tdtype="order_by" data-field="status">状态</span></th>
                <th align="left" width=150><span data-tdtype="order_by" data-field="createtime">创建时间</span></th>
                <th align="left" width="120">操作</th>
            </tr>
            </thead>
            <tbody>
            <volist name="list" id="val" >
                <tr>
                    <td align="center"><input type="checkbox" class="J_checkitem" value="{$val.id}"></td>
                    <td align="center">{$val.id}</td>
                    <td><a target="_blank" href="__ROOT__/Files/{$val['savepath']}{$val['name']}" style="color: #3f913f;font-weight: bold;">{$val['original']}</a></td>
                    <td>{$order_info[$val['order_id']]['name']}</td>
                    <td>{$order_info[$val['order_id']]['mobile']}</td>
                    <td>{$cate_list[$val['cate_id']]}</td>
                    <td>{$val.type}</td>
                    <td>{$val.size}</td>
                    <td>{$user_info[$val['create_user_id']]['user_name']}</td>
                    <td>{$status_name[$val['status']]}</td>
                    <td>{:date('Y-m-d H:i:s',$val['createtime'])}</td>
                    <td>
                        <a href="javascript:void(0);" class="J_confirmurl" data-acttype="ajax" data-uri="{:U('File/delete', array('id'=>$val['id']))}" data-msg="删除 - {$val['original']} -这个附件">删除</a>
                    </td>
                </tr>
            </volist>
            </tbody>
        </table>
        <if condition="$Think.get.perpage gt 10">
            <div style="height: 60px;"></div>
        </if>
        <div class="btn_wrap_fixed">
            <label class="select_all"><input type="checkbox" name="checkall" class="J_checkall">全选/取消</label>
            <input type="button" class="btn" data-tdtype="batch_action" data-acttype="ajax" data-uri="{:U('File/delete')}?ok=1" data-name="id" data-msg="确认删除" value="删除" />
            <div id="pages">{$page}</div>
        </div>
    </div>
</div>
<include file="Login:footer" />
<link rel="stylesheet" type="text/css" href="__ROOT__/static/js/calendar/calendar-blue.css"/>
<script src="__ROOT__/static/js/calendar/calendar.js"></script>
<script>
    $('#article_search_cate_id').val('{$search.cate_id}');
    $('.J_cate_select').cate_select({top_option:lang.all});
    Calendar.setup({
        inputField : "time_start",
        ifFormat   : "%Y-%m-%d",
        showsTime  : false,
        timeFormat : "24"
    });
    Calendar.setup({
        inputField : "time_end",
        ifFormat   : "%Y-%m-%d",
        showsTime  : false,
        timeFormat : "24"
    });
</script>
</body>
</html>
